<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/18
 * Time: 21:28
 */
use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>


<?php
    foreach ($comments as $comment):
?>
<div class="comment">
    <div class="row">
        <div class="col-md-12">
            <div class="comment_detail">
                <p class="bg-info">
                    <span class="glyphicon glyphicon-user"></span>
                    <em><?= Html::encode($comment->user->username); ?></em>
                    <br>
                    <?= nl2br($comment->content); ?>
                    <br>
                    <span class="glyphicon glyphicon-time"></span>
                    <?= date('Y-m-d H:i:s', $comment->create_time); ?>
                </p>
            </div>
        </div>
    </div>
</div>
<?php endforeach;?>
